//
// Created by macos on 2021/11/20.
//

#ifndef YML_H
#define YML_H

#ifdef __cplusplus
extern "C" {
#endif

#include <yaml.h>
#include "map.h"

#define MAX_KEY_LENGTH 1024

void load_yml_config(map_t *yml_config,const char *yml_filename);
unsigned char * get_yml_string(map_t yml_config,char *key);
int64_t get_yml_int64(map_t yml_config,char *key);
void close_yml(map_t yml_config);

#ifdef __cplusplus
}
#endif

#endif //YML_H
